<script setup>
import { ref } from 'vue'
import { ElMessageBox } from 'element-plus'
import { useRouter } from "vue-router";
const dialogVisible = ref(false)
const router = useRouter();
defineProps({
  msg: String,
})

const count = ref(0)

const handleClose = () => {
  ElMessageBox.confirm('Are you sure to close this dialog?')
    .then(() => {
      done()
    })
    .catch(() => {
      // catch error
    })
}

const toMain=()=>{
  router.push("/main")
}
</script>

<template>
 <el-button  @click="toMain" type="primary">
   哈喽
  </el-button>
  
  
</template>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
